package com.example.qaplatform.repository;

import com.example.qaplatform.entity.History1Entity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface History1Repository extends JpaRepository<History1Entity, Long> {
    List<History1Entity> findByChatIdOrderByCreateTimeAsc(Long chatId);
    void deleteByChatId(Long chatId);
} 